package com.ternnetwork.objectstore.service;

import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.objectstore.dto.file.FileDto;
import com.ternnetwork.objectstore.dto.file.UploadFileDto;
import org.springframework.web.multipart.MultipartFile;

public interface ObjectStoreService {

    BaseResponse upload(Long userId , UploadFileDto uploadFileDto) throws Exception;

    BaseResponse uploadMultipartFiles(Long userId,String currentDirectory, MultipartFile[] multipartFiles) throws Exception;

    BaseResponse createDirectory(Long userId,String directoryPath)throws Exception;

    BaseResponse delete(Long userId, FileDto fileDto) throws Exception;

    BaseResponse list(Long userId,String currentDirectory) throws Exception;

    BaseResponse rename(Long userId,String oldFilePath,String newFilePath)throws Exception;

}
